package com.ebelter.bodyfatscale.moudules.db.beans;

import com.ebelter.bodyfatscale.moudules.db.AppDatabase;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;

import java.io.Serializable;

@Table(database = AppDatabase.class)
public class HistoryMesureData extends BaseModel implements Serializable {

    @PrimaryKey(autoincrement = true)//ID自增
    public long id;

    /*用户标识id，必须保证唯一性*/
    @Column
    public long userID;

    /*测量时间*/
    @Column
    public String measureTime;
    /*阻抗*/
    @Column
    public float resistance;

    /*体脂率*/
    @Column
    public float fat;
    /*体重*/
    @Column
    public float weight;
    /*水分率*/
    @Column
    public float waterRate;
    /*基础代谢率率*/
    @Column
    public float bmr;
    /*内脏脂肪等级*/
    @Column
    public float visceralFat;
    /*肌肉量*/
    @Column
    public float muscleVolume;
    /*骨骼肌*/
    @Column
    public float skeletalMuscle;
    /*骨量*/
    @Column
    public float boneVolume;
    /*BMI*/
    @Column
    public float bmi;
    /*蛋白质*/
    @Column
    public float protein;
    /*身体得分*/
    @Column
    public int bodyScore;
    /*身体年龄*/
    @Column
    public int bodyAge;

    @Override
    public String toString() {
        return "HistoryMesureData{" +
                "id=" + id +
                ", measureTime='" + measureTime + '\'' +
                ", resistance=" + resistance +
                ", fat=" + fat +
                ", weight=" + weight +
                ", waterRate=" + waterRate +
                ", bmr=" + bmr +
                ", visceralFat=" + visceralFat +
                ", muscleVolume=" + muscleVolume +
                ", skeletalMuscle=" + skeletalMuscle +
                ", boneVolume=" + boneVolume +
                ", bmi=" + bmi +
                ", protein=" + protein +
                ", bodyScore=" + bodyScore +
                ", bodyAge=" + bodyAge +
                '}';
    }
}
